package org.sunshine.dye.controller.test;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.sunshine.dye.model.TestBean;
import org.sunshine.dye.service.test.OneService;

@RestController
@RequestMapping("/test/one")
public class OneController {
	
	@Autowired
	private OneService oneService;
	
	@RequestMapping("/hello")
	public String hello() {
		return "hello";
	}
	
	@RequestMapping("/list")
	public List<TestBean> list() {
		return oneService.getList();
	}

}
